home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / python-support / python-rdflib / rdflib / Statement.py < prev    next >
Encoding:
Python Source  |  2007-04-04  |  273 b   |  12 lines

  1. from rdflib.Node import Node
  2.  
  3.  
  4. class Statement(Node, tuple):
  5.  
  6.     def __new__(cls, (subject, predicate, object), context):
  7.         return tuple.__new__(cls, ((subject, predicate, object), context))
  8.  
  9.     def __reduce__(self):
  10.         return (Statement, (self[0], self[1]))
  11.  
  12.